import request from '@/axios';


/**
 * 分页获取待办任务(个人任务+组任务)
 * @param {*} row
 * @returns
 */
export const getAllTaskList = row => request({
  url: '/zzy-audit-manage/flowEngine/getAllTaskList',
  method: 'post',
  data: row,
});

/**
 * 分页获取个人所有已办任务
 * @param {*} row
 * @returns
 */
export const getAllFinishedTaskList = row => request({
  url: '/zzy-audit-manage/flowEngine/getAllFinishedTaskList',
  method: 'post',
  data: row,
});

/**
 * 启动流程，并自动完成第一个任务节点
 * @param {*} row
 * @returns
 */
export const startProcessInstanceByKeyAndCompleteFirstTask = row => request({
  url: '/zzy-audit-manage/flowEngine/startProcessInstanceByKeyAndCompleteFirstTask',
  method: 'post',
  data: row,
});
